export interface Env {
	api_url: string; // api 接口地址
	wss: string; // websocket地址
	clound_storage_url: string; // 云存储地址
	authorization?: string; // hader authorization
	gaodeApiUrl: string; // 高德api接口地址
	gaodeKey: string; // 高德api key
	appTitle: string; // app名称
}
import { localEnv } from '../env/local';
import { trialEnv } from '../env/trial';
import { proEnv } from '../env/pro';
const env = (): Env => {
	const env = uni.getAccountInfoSync();
	const envVersion = env.miniProgram.envVersion;
	switch (envVersion) {
		case 'develop':
			// 开发
			return localEnv;
		case 'trial':
			// 体验
			return trialEnv;
		case 'release':
			// 线上
			return proEnv;
	}
};
export default env();
